package com.im.gate;


import com.rou.im.framework.core.Request;
import com.rou.im.framework.core.request.RequestHeader;
import com.rou.im.framework.core.transfer.MsgHeader;
import lombok.ToString;

/**
 * <p></p>
 *
 * @author GaoShuangWen
 * @since 2020-04-12 23:25
 */
@ToString
public class MesRequest implements Request {

    private final RequestHeader header;

    private final Object msgBody;

    public MesRequest(RequestHeader header, Object msgBody) {
        this.header = header;
        this.msgBody = msgBody;
    }



    @Override
    public Object getRequestBody() {
            return this.msgBody;
    }

    @Override
    public RequestHeader getRequestHeaders() {
        return header;
    }
}
